# i = 0
# ans = ''
# while i < 12:
#     code = 255 - i - 100 - 48
#     ans += chr(code)
#     i += 1
# print(ans)


# a1 = ""
# a2 = ""
# a3 = ""
#
# key1 = "LN^dl"
# for i in range(4):
#     a1 += chr((ord(key1[i]) ^ 0x80) // 2)
# a1 += key1[4]
#
# key2 = " 5-\x16a"
# for i in range(4):
#     a2 += chr(ord(key2[i]) ^ ord(key1[i]))
# a2 += key2[4]
#
# key3 = "AFBo}"
# for i in range(4):
#     a3 += chr(ord(key3[i]) ^ ord(key2[i]))
# a3 += key3[4]
#
# flag = ""
# for i in range(5):
#     flag = flag + a1[i] + a2[i] + a3[i]
#
# print(flag)


# import hashlib
#
# str1 = b"Tenshine"
# str2 = hashlib.md5(str1).hexdigest()
# print(str2)  # b9c77224ff234f27ac6badf83b855c76
# flag = ""
# for i in range(len(str2)):
#     if i % 2 == 0:
#         flag += str2[i]
# flag = "flag{" + flag + "}"
# print(flag)  # bc72f242a6af3857


# import os
# from Crypto.Cipher import AES
#
# filename = "ClassEnc"
# key = "bb27630cf264f8567d185008c10c3f96"
# key_bytes = bytes.fromhex(key)
# aes = AES.new((key_bytes), AES.MODE_ECB)
# data = bytearray(os.path.getsize(filename))
# with open(filename, 'rb') as f:
#     f.readinto(data)
#     f.close()
# decryption_data = aes.decrypt(data)
# with open(filename + "_decryption.class", 'ba') as f:
#     f.write(decryption_data)
# f.close()


# enc_flag = "Ku@'G_V9v(yGS"
# data = "(Ljava/lang/String;Ljava/lang/String;)Ljava/lang/String;"
# data = [ord(i) for i in data]
#
# enc = [ord(i) for i in enc_flag]
# flag = [0] * len(enc)
# for i in range(len(enc)):
#     flag[i] = (enc[i] - 32) + 64 - data[i]
#     while flag[i] < 0x32:
#         flag[i] += 93
#     while flag[i] > 125:
#         flag[i] -= 93
# print("".join([chr(i) for i in flag]))

# version_code = 15
# version_name = 'X<cP[?PHNB<P?aj'
# flag = ''
# for i in [ord(i) for i in version_name]:
#     flag += chr(i ^ version_code)
#
# print(flag)


ens = "EoPAoY62@ElRD"
data = "W3_arE_whO_we_ARE"
num = 2016
flag = ""
for i in range(len(ens)):
    if i % 3 == 1:
        num = (num + 5) % 16
        xor = data[num + 1]
    elif i % 3 == 2:
        num = (num + 7) % 15
        xor = data[num + 2]
    else:
        num = (num + 3) % 13
        xor = data[num + 3]
    flag += chr(ord(ens[i]) ^ ord(xor))
print(flag)

